package week_07.stackArrangement;

import week_07.Queue;
import week_07.Stack;

import java.util.Arrays;

public class stackArrangement {
    public static void main(String[] args) {
        Stack<String> stack = new Stack<>();
        Queue<String> queue = new Queue<>();
        String str = "abcde";
        queue.fullArrangement(str);
        String[] strings = new String[queue.size()];
        int size = queue.size();
        for (int i = 0; i < size; i++) {
            strings[i]= queue.pop();
        }
//        System.out.println(Arrays.toString(strings));
        stack.fullArrangementCheck(strings);
        for (String s : stack) {
            System.out.println(s);
        }
        System.out.println(stack.size());
    }
}
